import requests
import pytest
import json


class Login():
    def login(self, account, password,uuid,code,company_name):
        url = "https://www.test.carvingerp.com/python/v1/api/system/passport/login"
        json = {
            "uuid": uuid,
            "code": code,
            "company_name": company_name,
            "account": account,
            "password": password,
        }
        r = requests.post(url=url, json=json)
        return r.json()
